package com.charges.repository;

import com.charges.entity.RedemptionCodeDO;
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 核销码数据访问层
 * @author admin
 */
public interface RedemptionCodeRepository extends JpaRepository<RedemptionCodeDO, Integer> {

    @EntityGraph(attributePaths = {"benefit"})
    RedemptionCodeDO findByCode(String code);
}